package com.google.code.yanf4j.test;

import java.io.IOException;

import com.google.code.yanf4j.config.Configuration;
import com.google.code.yanf4j.core.impl.TextLineCodecFactory;
import com.google.code.yanf4j.nio.TCPController;

public class ChatServer {
	public static void main(String[] args) throws IOException {
		TCPController controller = new TCPController(new Configuration(), new TextLineCodecFactory());
		controller.setHandler(new ChatServerHandler());
		controller.bind(8484);
		controller.start();
	}
}
